package com.yikes.srb.feign.fallback;

import com.yikes.srb.common.result.Result;
import com.yikes.srb.feign.userInfo.UserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * <p>
 *
 * </p>
 *
 * @Author: guanrong.yin
 * @Date: 2025/1/11 19:02
 */
@Service
@Slf4j
public class UserInfoClientFallback implements UserInfoClient {

    @Override
    public Result checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return Result.build(false);
    }
}
